importPackage( Packages.java.awt, java.lang );
var out = java.lang.System.out;

g2.setPaint( new java.awt.GradientPaint(0, -100, Color.GRAY, 0, canvas.getHeight() + 100, Color.BLACK));
g2.fillRect(0, 0, Math.round(canvas.getWidth()), Math.round(canvas.getHeight()));

var nameFont = Font.decode("Courier-42");
var detailsFont = Font.decode("Courier-24");


for(var i=0; i< coalition.casualties.length; i++){
  var c = coalition.casualties[i ]
  var line = c.name + " " + c.causeOfDeath;
  g2.setFont(nameFont);
  g2.setColor(Color.WHITE);
  g2.drawString( c.name, 100, (i*100) +100);
  g2.setFont(detailsFont);
  g2.setColor(Color.GRAY);
  g2.drawString( c.causeOfDeath, 100, (i*100) + 130 );
}
